package com.demo.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateConvert {
    public static String millisecondToDate(long millisecond){
        SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date(millisecond);
        return dateformat.format(date);
    }
}
